import request from '@/util/axios'
import apiUrl from '../apiUrlConfig'

// 获取所有品种
export const getCategorys = () =>
    request({
        url: apiUrl.Url_datasSupport_getCategorys,
        method: "get"
    });
export const getAllCityData = () =>
    request({
        url: apiUrl.Url_datasSupport_getAllCityData,
        method: "get"
    });

// 下载文件
export const fileDownload = (option) =>
    request({
        url: apiUrl.Url_file_download,
        method: "get",
        params: option
    });

//根据方向获取权限资源
export const getBaseResourceByDirection = (option) =>
    request({
        url: apiUrl.Url_auth_getBaseResourceByDirection,
        data: option,
        method: 'post'
    });
